const api = '/api/memberCard'
export default {
  //会员卡列表
  getCardList: (...args) => uni.$request.post(`${api}/getCardList`, ...args),
  //会员卡绑定
  bindCard: (...args) => uni.$request.post(`${api}/bindCard`, ...args),
  //卡订单刷状态
  getOrderInfo: (...args) => uni.$request.post(`${api}/getOrderInfo`, ...args),
  //确认充值订单支付金额
  confirmPay: (...args) => uni.$request.post(`${api}/confirmPay`, ...args),
  //修改会员卡密码
  changePassword: (...args) =>
    uni.$request.post(`${api}/changePassword`, ...args),
  //创建会员卡充值订单
  createOrder: (...args) => uni.$request.post(`${api}/createOrder`, ...args),
  //获取商户充值金额设置
  getRechargeSet: (...args) =>
    uni.$request.post(`${api}/getRechargeSet`, ...args),

  //会员卡明细
  getCardDetail: (...args) =>
    uni.$request.post(`${api}/getCardDetail`, ...args),
  //根据影票订单获取当前可用会员卡列表
  getMemberCardByOrderId: (...args) =>
    uni.$request.post(`${api}/getMemberCardByOrderId`, ...args),
  //根据套票id获取套票可用系统商会员卡列表
  getMemberCardByMallCommodityId: (...args) =>
    uni.$request.post(`${api}/getMemberCardByMallCommodityId`, ...args),
  //根据卖品点餐明细获取可用会员卡列表
  getMemberCardByFoodCart: (...args) =>
    uni.$request.post(`${api}/getMemberCardByFoodCart`, ...args)
}
